﻿using System;
using System.Web.UI;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;

namespace RibbonCustomization.RibbonPages
{
    public class DemoPage2
        : WebPartPage
    {
        public const string EmptyTabID = "Ribbon.EmptyTab";

        protected override void OnPreRender(EventArgs e)
        {
            SPRibbon ribbon = SPRibbon.GetCurrent(Page);
            if (ribbon != null)
            {
                ribbon.MakeTabAvailable(EmptyTabID);
            }
            base.OnPreRender(e);
        }
    }
}
